package com.wanlian.dao;

import com.wanlian.common.PageCondition;
import com.wanlian.entity.UserScore;
import com.wanlian.model.ResultModel;
import com.wanlian.vo.Page;

import java.util.Map;

public interface UserScoreDao extends GenericDao<UserScore> {

    ResultModel queryUserScore(Page page, Map<String, Object> conditions);

    UserScore queryUserScoreByUserId(int userId);

    UserScore queryUserScoreByParams(int userId, int rankType);

    ResultModel queryUserScoreByParams(PageCondition pageCondition, int uid);

    /* ResultModel queryUserScoreHistoryByParams(PageCondition pageCondition);*/

    ResultModel queryUserScoreHistoryByParams(PageCondition pageCondition, int uid);

    ResultModel queryUserScoreWater(PageCondition pageCondition, int uid);


    ResultModel queryUserScoreOrder(PageCondition pageCondition);

    ResultModel queryUserSumScoreOrder(PageCondition pageCondition);


    /**
     * 添加或者修改积分
     */
    void addOrUpdate(UserScore userScore);
}
